import {GuidTools} from "../Util/GuidTools"
import { Constructors, getClassName } from "./Global";

export namespace GameCore
{
    export abstract class ClassBase{
        public readonly instanceId = GuidTools.NewInstanceId();
        private isSetClassName:boolean = false;
        private _className : string = null;
        public get className() : string {return this._className;}
        public set className(className:string) {if(!this.isSetClassName) {this._className = className; this.isSetClassName = true;}else console.error("class name already been seted!");}
    }
}